import request from '@/utils/request'

// 查询资料借阅申请列表
export function listAdminBorrow(query) {
  return request({
    url: '/oa/adminBorrow/list',
    method: 'get',
    params: query
  })
}

// 查询资料借阅申请详细
export function getAdminBorrow(id) {
  return request({
    url: '/oa/adminBorrow/' + id,
    method: 'get'
  })
}

// 新增资料借阅申请
export function addAdminBorrow(data) {
  return request({
    url: '/oa/adminBorrow',
    method: 'post',
    data: data
  })
}

// 修改资料借阅申请
export function updateAdminBorrow(data) {
  return request({
    url: '/oa/adminBorrow',
    method: 'put',
    data: data
  })
}

// 删除资料借阅申请
export function delAdminBorrow(id) {
  return request({
    url: '/oa/adminBorrow/' + id,
    method: 'delete'
  })
}
